/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model.pojo;

import java.util.Date;

/**
 *
 * @author OJH
 */
public class SanPham {
    
    private int maSanPham;
    private int maDanhMuc;
    private int maDiaDiem;
    private int maTinhTrangSanPham;
    private String tenSanPham;
    private String chiTiet;
    private int giaGoc;
    private int tiLeGiam;
    private int giaGiam;
    private Date ngayGioBatDau;
    private Date ngayGioKetThuc;
    private int luotXem;
    private int luotQuangCao;
    private int doHapDan;
    private String hinhAnh;
    private int sLPhieuToiThieu;
    private int sLPhieuToiDa;
    private int luotLoanTin;
    private Date hanSuDung;
    
    public SanPham(){
        this.maSanPham=0;
        this.maDanhMuc=0;
        this.maTinhTrangSanPham=0;
        this.tenSanPham="";
        this.chiTiet="";
        this.giaGoc=0;
        this.tiLeGiam=0;
        this.giaGiam=0;
        this.ngayGioBatDau=null;
        this.ngayGioKetThuc=null;
        this.luotXem=0;
        this.luotQuangCao=0;
        this.doHapDan=0;
        this.hinhAnh="";
        this.sLPhieuToiDa=0;
        this.sLPhieuToiThieu=0;
        this.luotLoanTin=0;
        this.hanSuDung=null;
    }
    
    public SanPham(int maSanPham,int maDanhMuc,int maDiaDiem, int maTinhTrangSanPham, String tenSanPham,String chiTiet,
               int giaGoc,int tiLeGiam,int giaGiam, Date ngayGioBatDau,Date ngayGioKetThuc, int luotXem,int luotQuangCao, int doHapDan,String hinhAnh, int sLPhieuToiThieu,
                int sLPhieuToiDa,  int luotLoanTin,  Date hanSuDung){
        this.maSanPham=maSanPham;
        this.maDanhMuc=maDanhMuc;
        this.maTinhTrangSanPham=maTinhTrangSanPham;
        this.tenSanPham=tenSanPham;
        this.chiTiet=chiTiet;
        this.giaGoc=giaGoc;
        this.tiLeGiam=tiLeGiam;
        this.giaGiam=giaGiam;
        this.ngayGioBatDau=ngayGioBatDau;
        this.ngayGioKetThuc=ngayGioKetThuc;
        this.luotXem=luotXem;
        this.luotQuangCao=luotQuangCao;
        this.doHapDan=doHapDan;
        this.hinhAnh=hinhAnh;
        this.sLPhieuToiDa=sLPhieuToiDa;
        this.sLPhieuToiThieu=sLPhieuToiThieu;
        this.luotLoanTin=luotLoanTin;
        this.hanSuDung=hanSuDung;
    }
    
     public SanPham(SanPham sp){
        this.maSanPham=sp.maSanPham;
        this.maDanhMuc=sp.maDanhMuc;
        this.maTinhTrangSanPham=sp.maTinhTrangSanPham;
        this.tenSanPham=sp.tenSanPham;
        this.chiTiet=sp.chiTiet;
        this.giaGoc=sp.giaGoc;
        this.tiLeGiam=sp.tiLeGiam;
        this.giaGiam=sp.giaGiam;
        this.ngayGioBatDau=sp.ngayGioBatDau;
        this.ngayGioKetThuc=sp.ngayGioKetThuc;
        this.luotXem=sp.luotXem;
        this.luotQuangCao=sp.luotQuangCao;
        this.doHapDan=sp.doHapDan;
        this.hinhAnh=sp.hinhAnh;
        this.sLPhieuToiDa=sp.sLPhieuToiDa;
        this.sLPhieuToiThieu=sp.sLPhieuToiThieu;
        this.luotLoanTin=sp.luotLoanTin;
        this.hanSuDung=sp.hanSuDung;
    }
    /**
     * @return the maSanPham
     */
    public int getMaSanPham() {
        return maSanPham;
    }

    /**
     * @param maSanPham the maSanPham to set
     */
    public void setMaSanPham(int maSanPham) {
        this.maSanPham = maSanPham;
    }

    /**
     * @return the maDanhMuc
     */
    public int getMaDanhMuc() {
        return maDanhMuc;
    }

    /**
     * @return the maDiaDiem
     */
    public int getMaDiaDiem() {
        return maDiaDiem;
    }

    /**
     * @return the maTinhTrangSanPham
     */
    public int getMaTinhTrangSanPham() {
        return maTinhTrangSanPham;
    }

    /**
     * @return the tenSanPham
     */
    public String getTenSanPham() {
        return tenSanPham;
    }

    /**
     * @return the chiTiet
     */
    public String getChiTiet() {
        return chiTiet;
    }

    /**
     * @return the giaGoc
     */
    public int getGiaGoc() {
        return giaGoc;
    }

    /**
     * @return the tiLeGiam
     */
    public int getTiLeGiam() {
        return tiLeGiam;
    }

    /**
     * @return the giaGiam
     */
    public int getGiaGiam() {
        return giaGiam;
    }

    /**
     * @return the ngayGioBatDau
     */
    public Date getNgayGioBatDau() {
        return ngayGioBatDau;
    }

    /**
     * @return the ngayGioKetThuc
     */
    public Date getNgayGioKetThuc() {
        return ngayGioKetThuc;
    }

    /**
     * @return the luotXem
     */
    public int getLuotXem() {
        return luotXem;
    }

    /**
     * @return the luotQuangCao
     */
    public int getLuotQuangCao() {
        return luotQuangCao;
    }

    /**
     * @return the doHapDan
     */
    public int getDoHapDan() {
        return doHapDan;
    }

    /**
     * @return the hinhAnh
     */
    public String getHinhAnh() {
        return hinhAnh;
    }

    /**
     * @return the sLPhieuToiThieu
     */
    public int getsLPhieuToiThieu() {
        return sLPhieuToiThieu;
    }

    /**
     * @return the sLPhieuToiDa
     */
    public int getsLPhieuToiDa() {
        return sLPhieuToiDa;
    }

    /**
     * @return the luotLoanTin
     */
    public int getLuotLoanTin() {
        return luotLoanTin;
    }

    /**
     * @return the hanSuDung
     */
    public Date getHanSuDung() {
        return hanSuDung;
    }

}
